package com.gzsxy.esjy.sign.dto;

import com.alibaba.fastjson.JSONArray;
import lombok.Getter;
import lombok.Setter;

/**
 * 签字板通信协议
 * @author zhangxiaolong
 * @since 2022/7/15
 */
@Getter
@Setter
public class ScreenSignParamDto {

    /**
     * 预约uuid
     */
    private String taskID;

    /**
     * 设备标识 现在默认捷宇
     */
    private String devToken = "SignDev";


    /**
     * 发送的参数信息
     */
    private ScreenSignDevMsgDto devMsg;


    /**
     * 签名结果 0为成功，9未取消，其他为异常
     */
    private int code = -1;

    /**
     * 签字板返回的错误信息
     */
    private String msg;

    /**
     * 签字板收到信息回复确认
     */
    private Integer ack;

    /**
     * 签字请求id
     */
    private String requestID;

    /**
     * 点流数组
     */
    private JSONArray urlArray;

    /**
     * 安装包
     */
    private String installerName;

    /**
     * 关闭的程序名称
     */
    private String shutDownName;

    /**
     * 更新的url
     */
    private String installerUrl;

    public ScreenSignParamDto() {
        super();
    }

    public ScreenSignParamDto(String taskId, String requestId, ScreenSignDevMsgDto devMsg) {
        this.taskID = taskId;
        this.requestID = requestId;
        this.devMsg = devMsg;
    }
}
